package com.intretech.umsin.oss.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @version V1.0
 * @ClassName: UploadParam
 * @Description: UploadParam 文件上传携带参数信息
 * @author: 李启联
 * @date: 2022-04-24 11:36
 * @Copyright: Copyright (c) 2022
 */
@ApiModel("文件上传携带参数信息")
public class UploadParam implements Serializable {

    @ApiModelProperty(value = "存放路径" ,dataType="varchar(64)" ,required= false)
    private String path;//存放路径

    @ApiModelProperty(value = "业务单主键标识" ,dataType="varchar(64)" ,required= false)
    private String businessId;//业务单主键标识

    @ApiModelProperty(value = "用户自定义属性" ,dataType="varchar(64)" ,required= false)
    private String userDefine;//用户自定义属性

    @ApiModelProperty(value = "是否为公开访问" ,dataType="boolean" ,required= false)
    public Boolean ifPublic = true;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getUserDefine() {
        return userDefine;
    }

    public void setUserDefine(String userDefine) {
        this.userDefine = userDefine;
    }

    public Boolean getIfPublic() {
        return ifPublic;
    }

    public void setIfPublic(Boolean ifPublic) {
        this.ifPublic = ifPublic;
    }

    public UploadParam() {
    }

    public UploadParam(String path, String businessId, String userDefine, Boolean ifPublic) {
        this.path = path;
        this.businessId = businessId;
        this.userDefine = userDefine;
        this.ifPublic = ifPublic;
    }

    @Override
    public String toString() {
        return "UploadParam{" +
                "path='" + path + '\'' +
                ", businessId='" + businessId + '\'' +
                ", userDefine='" + userDefine + '\'' +
                ", isPublic=" + ifPublic +
                '}';
    }
}
